package cn.kgc.service.impl;    /*
 *@author wangchangsheng
 *@Date 2023/4/27
 */

import cn.kgc.bean.pojo.EpUser;
import cn.kgc.mapper.EpUserMapper;
import cn.kgc.service.EpUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service("epUserService")
public class EpUserServiceimpl  implements EpUserService {


    @Resource
    private EpUserMapper epUserMapper;

    /*
     *@author wangchangsheng
     *@Date 2023/4/28
     * 登录
     */
    @Override
    public EpUser getLogin(String loginName, String password) {
        return epUserMapper.getLogin(loginName,password);
    }


    /*
     *@author wangchangsheng
     *@Date 2023/4/28
     * 注册
     */
    @Override
    public boolean addEpUser(EpUser epUser) {
        int count = epUserMapper.addEpUser(epUser);
        if (count>0){
            return true;
        }else{
            return false;
        }
    }
}
